package cn.tedu.ximart.server.mapper;
import org.apache.ibatis.annotations.Param;

import cn.tedu.ximart.server.pojo.entity.Picture;
import org.springframework.stereotype.Repository;

/**
* @author HCL
* @description 针对表【pms_picture(图片)】的数据库操作Mapper
* @createDate 2022-07-22 09:30:50
* @Entity cn.tedu.ximart.server.pojo.entity.Picture
*/
@Repository
public interface PictureMapper {


    int deleteByPrimaryKey(Long id);

    int insert(Picture record);

    int insertSelective(Picture record);

    Picture selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Picture record);

    int updateByPrimaryKey(Picture record);

    int countByUrl(@Param("url") String url);

    int countByAlbumId(@Param("albumId") Long albumId);

    int deleteById(@Param("id") Long id);
}
